<div class="form-compile">
<div class="model" style="display:none">
${model}
</div>
    <form class="layui-form"  lay-filter="edit-form">
        <input type="hidden" name="menuId"  />
        <div class="layui-form-item">
            <label class="layui-form-label required">父级菜单</label>
            <div class="layui-input-inline">
            	<ul id="menuTree" class="dtree" data-id="-1" name="parentId"></ul>
            	<input id="parentId" name="parentId" type="hidden">
            </div>
        </div>        
        <div class="layui-form-item">
            <label class="layui-form-label required">菜单名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="menuName"  placeholder="请输入菜单名称">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">菜单类型</label>
            <div class="layui-input-inline">
                <select id="menuEditType" name="menuType" lay-filter="menuType">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">菜单url</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="url"  placeholder="请输入权限编码" >
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label required">权限编码</label>
            <div class="layui-input-inline">
                <input class="layui-input url-input" type="text" name="perms"  placeholder="请输入权限编码" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单图标</label>
            <div class="layui-input-inline">
                <input class="layui-input icon-input" id="iconMenu" type="text" name="icon"  placeholder="请输入菜单图标" >
            </div>
            <button type="button" class="layui-btn" id="choseIcon">选择图标</button>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sort"  placeholder="请输入排序号" >
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark" ></textarea>
            </div>
        </div>
        <div class="layui-form-item form-finally">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="menu-edit" id="menuEditSave">保存</button>
            <button type="button" class="layui-btn" onclick="closePopup()">关闭</button>
        </div>
    </form>
</div>
[@common.jsRef url="/sys/menu/editView.js"/]
